//
//  PackageDetailsViewController.h
//  OrderSeat
//
//  Created by wangwei on 13-10-16.
//  Copyright (c) 2013年 wangwei. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "AlertWindowView.h"

@class PackageDetailsDataSource;
@interface PackageDetailsViewController : BaseViewController<AlertWindowViewDelegate,UIAlertViewDelegate>

@property (strong, nonatomic) IBOutlet UILabel *packageNameLabel;
@property (strong, nonatomic) IBOutlet UIButton    *btnSubmit;
@property (strong, nonatomic) IBOutlet UITableView *detailsTable;
@property (strong, nonatomic) IBOutlet UIScrollView *theScrollview;
@property (strong, nonatomic) IBOutlet UILabel *countLabel;
@property (strong, nonatomic) IBOutlet UIView *totalView;
@property (strong, nonatomic) IBOutlet UIView *titleView;
@property (strong, nonatomic) IBOutlet UILabel *totalMoneyLabel;
@property (strong, nonatomic) IBOutlet UILabel *totalCountLabel;

@property (strong, nonatomic) NSString *orderId;
@property (assign, nonatomic) BOOL orderSuccess;

@property (assign, nonatomic) BOOL isNext;
@property (strong, nonatomic) NSString *shopId;
@property (strong, nonatomic) NSString *packageId;
@property (strong, nonatomic) NSString *selectSeats;
@property (strong, nonatomic) NSMutableDictionary *packageEntity;
@property (strong, nonatomic) PackageDetailsDataSource *dataSource;

- (id)initWithShopId:(NSString *)shopId packageId:(NSString*)packageId;

@end

@interface PackageDetailsDataSource : BaseDataSource<UITableViewDataSource, UITableViewDelegate>

@property (strong, nonatomic) PackageDetailsViewController *viewController;
@property (strong, nonatomic) NSMutableArray *dishList;

- (id)initWithVC:(id)viewController;
- (void)fetchPackageDetails;
- (void)submitOrderWithURL:(NSString*)url;

@end
